{template 'common/header-gw'}
<ol class="breadcrumb">
	<li><a href="./?refresh"><i class="fa fa-home"></i></a></li>
	<li class=""><a href="{url 'system/welcome'}">系统</a></li>
	<li class="active">一键更新</li>
</ol>
<script src="./resource/script/update.min.js" type="text/javascript"></script>
<!--重要通知仅仅通知一次-->
<style type="text/css">
/* pop */
#pop{background:#fff;width:260px;border:1px solid #e0e0e0;font-size:12px;position:fixed;right:40px;bottom:5px;}
#popHead{line-height:32px;background:#516C88;border-bottom:1px solid #e0e0e0;position:relative;font-size:12px;padding:0 0 0 10px;}
#popHead h2{font-size:14px;color: #FFFFFF;line-height:32px;height:32px;}
#popHead #popClose{position:absolute;right:10px;top:1px;}
#popHead a#popClose:hover{color: #FFFFFF;cursor:pointer;}
#popHead a{color: #FFFFFF;cursor:pointer;}
#popContent{padding:5px 10px;}
#popTitle a{line-height:24px;font-size:14px;font-family:'微软雅黑';color:#333;font-weight:bold;text-decoration:none;}
#popTitle a:hover{color:#f60;}
#popIntro{text-indent:24px;line-height:160%;margin:5px 0;color:#666;}
#popMore{text-align:right;border-top:1px dotted #ccc;line-height:24px;margin:8px 0 0 0;}
#popMore a{color:#f60;}
#popMore a:hover{color:#f00;}
</style>
<script type="text/javascript" src="./resource/notice/jquery.min.js"></script>
<script type="text/javascript" src="./resource/notice/yanue.pop.js"></script>
<script type="text/javascript" >
//记得加载jquery
//使用参数：1.标题，2.链接地址，3.内容简介
window.onload=function(){
	var pop=new Pop("全新后台模板欢迎您体验！","/web/index.php?c=extension&a=theme&do=web&","请将模板风格切换为black 然后清空缓存即可体验新版后台模板风格");
}
</script>

<div id="pop" style="display:none;">
<div id="popHead"> <a id="popClose" title="关闭">关闭</a>
<h2>新功能推荐！</h2>
</div>
<div id="popContent">
<dl>
<dt id="popTitle" style="text-align:center"><a href="http://weizan.52jscn.com/" target="_blank">这里是标题</a></dt>
<dd id="popIntro">这里是内容简介</dd>
</dl>
<p id="popMore"><a href="http://sc.chinaz.com/" target="_blank">查看 »</a></p>
</div>
</div>
<!--重要通知仅仅通知一次-->
<link href="./resource/style/update.css" type="text/css" rel="stylesheet">
<ul class="nav nav-tabs">
	<li class="active"><a href="#"><strong>系统在线升级</strong></a></li>
</ul>

<div style="width:922px;height:202px; margin-left:20px; margin-top:50px; margin-bottom:40px; border:1px solid #FFFFFF;-webkit-box-shadow:0px 0px 3px;-moz-box-shadow:0px 0px 3px;box-shadow: 0px 0px 3px;behavior: url(/PIE.htc);">

<!--升级主要内容-->
{if $op == 'display'}
<div style="width:719px; border-right:1px dotted #CCCCCC; float:left;height:200px; overflow:hidden;">

<div style="width:260px; height:200px; float:left; text-align:center;border-right:1px dotted #CCCCCC;">
<div style="margin-top:20px;">当前系统版本</div>
<div style="margin-top:35px;">V<span style="font-size:38px; color: #009900">{$ver}</span></div>
</div>

{if $lastver == $ver}<li style="margin-top:86px; text-align:center; line-height:25px;">恭喜您：您的系统已经是最新，请关注新的补丁包</li></div>
<div style="width:200px; float:left;height:200px; text-align:center; padding-top:86px; color:#999999">

下次补丁预计1天后更新</div>{/if}

{if $lastver != $ver}<li style="margin-top:70px; text-align:center; line-height:25px;">发现新补丁：<strong style="color:#009900">V{$lastver}</strong></li>
{if $domain_time == '0'}<li style="margin-top:10px; text-align:center; line-height:25px; color:#999999">您未取得该程序的商业版权，无法一键升级系统<li>
</div>
<div style="width:200px; float:left;height:200px; text-align:center; padding-top:90px;">
<a href="http://weizan.52jscn.com/shouquan.html" target="_blank">正式运营请购买商业授权</a>
</div>{/if}
{if $domain_time != '0'}<li style="margin-top:10px; text-align:center; line-height:25px; color:#999999">您是我们的商业授权客户&nbsp;我们将为您免费更新至：{php echo date("Y年m月d日", $domain_time);}<li>
</div>
<div style="width:200px; float:left;height:200px;">

<button onclick="chanage();" style="width:100px; height:60px; margin-left:55px; margin-top:70px; ">立即升级</button>
<script type="text/javascript">
		function chanage()
		  {
			location = "{php echo create_url('cloud/52jscn',array('op'=>'chanage'));}";
		}
</script></div>{/if}
{/if}


{/if}
<!--升级主要内容-->
<!---->
<div style="text-align:center; padding-top:40px;">
{if $op == 'chanage'}
<li style="line-height:35px;">待更新的程序版本：<span style="color:#009933;">V{$lastver}</span></li>
<li style="line-height:35px; color:#999999">本次更新的内容：{$cinfo}</li>
<li style="line-height:60px;"><button onclick="disp_confirm();" class="btn btn-primary" >点击升级</button>
	<script type="text/javascript">
		function disp_confirm()
		  {
		  var r=confirm("确定已备份好系统，并更新系统到最新版本吗？")
		  if (r==true)
			{
			location = "{php echo create_url('cloud/52jscn',array('op'=>'update'));}";
			}
		  }
		function alert(title) {
            $("#windowcenter").slideToggle("slow");
            $("#txt").html(title);
            setTimeout('$("#windowcenter").slideUp(500)', 4000);
        } 
		</script></li>
{/if}
</div>
<!---->

</div>
<ul class="nav nav-tabs" style="line-height:40px;">
	<li class="active"><a href="#"><strong>增值服务</strong></a></li><span style="color:#999999">（购买微信魔方商业授权，可以获得更多的商业模块免费升级服务，<a href="http://mofang.52jscn.com" target="_blank">点击此处立即授权</a>！）</span>
</ul>

<div style="width:152px;; height:182px; margin-left:20px; margin-top:20px; margin-bottom:30px; border:1px solid #DADADA; float:left;"><a href="/web/index.php?c=cloud&a=52jscn_renren"><img src="/web/resource/images/renren.icon.jpg" /><li style="width:150px;text-align:center">立即升级</li></a></div>
<div style="width:152px;; height:182px; margin-left:20px; margin-top:20px; margin-bottom:30px; border:1px solid #DADADA; float:left;"><a href="/web/index.php?c=cloud&a=52jscn_tiger"><img src="/web/resource/images/tiger.icon.jpg" /><li style="width:150px;text-align:center">立即升级</li></a></div>
<div style="width:152px;; height:182px; margin-left:20px; margin-top:20px; margin-bottom:30px; border:1px solid #DADADA; float:left;"><a href="/web/index.php?c=cloud&a=52jscn_lala"><img src="/web/resource/images/lala.icon.jpg" title="啦啦外卖，外卖跑腿，餐厅订餐解决方案" /><li style="width:150px;text-align:center">立即升级</li></a></div>
<div style="width:152px;; height:182px; margin-left:20px; margin-top:20px; margin-bottom:30px; border:1px solid #DADADA; float:left;-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter: gray;"><img src="/web/resource/images/zuanshi_icon.jpg" /><li style="width:150px;text-align:center; color:#999999">已随系统免费升级</li></div>

{template 'common/footer-gw'}